package com.api.service;

import com.api.mapper.TOrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by PC on 2017/7/12.
 */
@Service
public class OrderService extends BaseService {
    private TOrderMapper orderMapper;

    @Autowired
    public void setOrderMapper(TOrderMapper orderMapper) {
        this.orderMapper = orderMapper;
        super.baseMapper = orderMapper;
    }

    public Double selectAverageScoreByParams(Map<String, Object> params) {
        return orderMapper.selectAverageScoreByParams(params);
    }
}
